<?php
  require "../../system/framework.php";  
  
  $table = trim($_REQUEST['table']);
  $field = trim($_REQUEST['field']);
  
  
  //xml_config::createTableField($table, $field);
  
  
   $xmlDatabase = new xml_database();
  $xmlDatabase->baseDir = false;
  $xmlDatabase->xmlFilename = config::$projectPath."/db/db.xml";
  
  $xmlDatabase->addTableField($table, $field); 
  
  
  //echo $table;
  $xmlDatabase->writeXmlDatabaseFile();   
  
  
  
  
  
  http::redirect("[php_property:redirect]");  

?>
